package com.pand.model.zmxy;

import com.pand.model.BaseObject;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 
 * @ClassName: ZmScoreQuerySerialNum
 * @Description: 芝麻信用扩展表
 *
 */
@Entity
@Table(name = "ZMSCOREQUERY_SERIALNUM")
@SequenceGenerator(name = "SEQ_ZMSCOREQUERY_SERIALNUM", sequenceName = "SEQ_ZMSCOREQUERY_SERIALNUM", allocationSize = 1)
public class ZmScoreQuerySerialNum extends BaseObject {

	/**
	 * @Fields serialVersionUID :
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 商户传入的业务流水号。此字段由商户生成，需确保唯一性，用于定位每一次请求，后续按此流水进行对帐。生成规则:
	 * 固定30位数字串，前17位为精确到毫秒的时间yyyyMMddhhmmssSSS，后13位为自增数字
	 */
	private String transactionId;

	/**
	 * 来源平台，默认为zmop
	 */
	private String platform;

	/**
	 * api:商户后台调用apppc:商户pc端调用app:商户移动app调用
	 */
	private String channel;

	/**
	 * 产品码
	 */
	private String productCode;

	/**
	 * 芝麻会员在商户的身份标识
	 */
	private String openId;

	/**
	 * 客户id
	 */
	private Long cstId;

	/**
	 * 芝麻信用对于每一次请求返回的业务号。后续可以通过此业务号进行对账
	 */
	private String bizNo;

	/**
	 * 用户的芝麻信用评分。分值范围[350,950]。如果用户数据不足，无法评分时，返回字符串"N/A
	 * */
	private String zmScore;

	/**
	 * 创建时间
	 */
	private Timestamp Create_tim;

	@Id
	@GeneratedValue(generator = "SEQ_ZMSCOREQUERY_SERIALNUM")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TRANSACTION_ID")
	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	@Column(name = "PLATFORM")
	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	@Column(name = "CHANNEL")
	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	@Column(name = "PRODUCT_CODE")
	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	@Column(name = "OPEN_ID")
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	@Column(name = "CST_ID")
	public Long getCstId() {
		return cstId;
	}

	public void setCstId(Long cstId) {
		this.cstId = cstId;
	}

	@Column(name = "BIZ_NO")
	public String getBizNo() {
		return bizNo;
	}

	public void setBizNo(String bizNo) {
		this.bizNo = bizNo;
	}

	@Column(name = "ZM_SCORE")
	public String getZmScore() {
		return zmScore;
	}

	public void setZmScore(String zmScore) {
		this.zmScore = zmScore;
	}

	@Column(name = "CREATE_TIM")
	public Timestamp getCreate_tim() {
		return Create_tim;
	}

	public void setCreate_tim(Timestamp create_tim) {
		Create_tim = create_tim;
	}

}
